//index.js
//获取应用实例
const app = getApp()

Page({
  data: {
    navItem:[
      { id: 1, menuListUrl: "qAa/qAa", menuListImg: "/imgs/bg01.jpg", menuListText: "口腔" },
      { id: 1, menuListUrl: "article/article", menuListImg: "/imgs/bg01.jpg", menuListText: "文章" },
      { id: 1, menuListUrl: "hospital/hospital", menuListImg: "/imgs/bg01.jpg", menuListText: "医院" },
      { id: 1, menuListUrl: "doctor/doctor", menuListImg: "/imgs/bg01.jpg", menuListText: "医生" },
      { id: 1, menuListUrl: "shop/shop", menuListImg: "/imgs/bg01.jpg", menuListText: "商城" },
      { id: 1, menuListUrl: "activity/activity", menuListImg: "/imgs/bg01.jpg", menuListText: "活动" },
      { id: 1, menuListUrl: "activity/activity", menuListImg: "/imgs/bg01.jpg", menuListText: "更多" },
      { id: 1, menuListUrl: "activity/activity", menuListImg: "/imgs/bg01.jpg", menuListText: "更多" },
    ],
    adUrl:"/imgs/bg01.jpg" ,
    question: [
      { id: 1, headImg: "/imgs/bg01.jpg", questionText: "上海亿大口腔", from: "分享", name: "xurose", time: "2018-10-17", answerNum:5 },
    ],
    cityItemShow:false,
    cityChecked:"上海",
  },
  onLoad: function () {
    var that = this;

  },
  CityChoose:function(e){
    var that=this;
    this.setData({
      cityChecked: e.target.dataset.city,
      cityItemShow:false,
    })
    console.log(e)
  },
  CityPop:function(){
      this.setData({
        cityItemShow:true
      })
  },
  onShareAppMessage: function () {
    var that = this;
    return {
      title: that.data.title,
      path: '/pages/index/index'
    }
  },

})
